﻿using System;

namespace Cubicle.Core.Processors.Parameter
{
    public class ParameterRequest
    {
        public Type TargetType = null;
        public Type SourceType = null;
        public object Source = null;
        public object Result = null;
        public RequestType ReqType;

        public ParameterRequest(Type targetType, object source)
        {
            TargetType = targetType;
            Source = source;
            SourceType = source.GetType();
        }

        public void Complete(object result)
        {
            ReqType = RequestType.Completed;
            Result = result;
        }
    }
}